<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="indtemuserCss" jsFile="indtemuserJs" current="个人用户">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
              <#if consumerVO ?? >
             	 <h1><#if consumerVO.id=''>新建个人用户<#else>修改个人用户</#if>
                    <small><#if consumerVO.id=''>新建个人用户界面<#else>修改个人用户界面</#if></small>
                </h1>
                
                <#else>
                <h1>新建个人用户 修改个人用户
                    <small>新建个人用户界面 修改个人用户界面</small>
                </h1>
              </#if>
                
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
        	<li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">个人用户</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        基本信息</div>
                </div>
                <div class="portlet-body form edit-form">
                    <form action="#" class="horizontal-form createform" id="addInd" >
                            <input type="hidden" class="form-control" placeholder="★请输入发薪日期" id="salary_date" name="salary_date" 
				                                        value="1">
                            <input type="hidden" id="data_stauts"   name="data_stauts" value="DATA_NEW_ADD">
                            <input type="hidden" id="consumer_nature"   name="consumer_nature" value="PERSON">
                            <input type="hidden" id="data_status"  name="data_status" value="DATA_NEW_ADD"> 
                            <input type="hidden" id="view_status" name="view_status" value="${view}">
                            <input type="hidden" name="account_no" value="" >
                            <input type="hidden" name="account_no_status" value="" >
                            <div class="form-body">
	                            <div class="alert alert-danger display-hide">
	                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
	                            </div>
	                            <div class="alert alert-success display-hide">
	                                <button class="close" data-close="alert"></button> 表单验证通过! 
	                            </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">用户ID</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="consumer_code" class="form-control" placeholder="系统自动生成，全系统唯一" name="consumer_code" value="${consumerVO.consumer_code}" readonly>
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">国籍</label>
                                            	<div class="input-group-content">
                                                	<input id="nationId" placeholder="★国籍" class="form-control input-inline nationality-suggest-input" name="nationality" >
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">姓名</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="consumer_name" class="form-control" placeholder="★姓名" name="consumer_name" >
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">证件类型</label>
                                                <div class="input-group-content">
                                                    <select class="form-control input-inline" name="law_type" >
					                                    <option value="">★请选择</option>
					                                    <option value="IDENTITYCARD"    >身份证</option>
					                                    <option value="OFFICER" >军官证</option>
					                                    <option value="POLICE" >警官证</option>
					                                    <option value="HOUSEHOLD"  >户口本</option>
					                                    <option value="PASSPORT"  >护照</option>
					                                    <option value="TEMPORARY" >临时证件</option>	
					                                    <option value="OTHER" >其它</option>
					                                    					                                    
					                                </select>
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">证件号码</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="law_no" class="form-control" placeholder="★证件号码" name="law_no" >
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">移动电话</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="mobile_tel"  class="form-control" placeholder="★移动电话" name="mobile_tel" >
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">办公电话</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="office_tel" class="form-control" placeholder="★办公电话" name="office_tel" > 
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">所属公司</label>
                                                <div class="input-group-content">
                                                    <select class="form-control input-inline" placeholder="★请输入所属公司" id="comID" name="company_id" >
					                                    	 
					                                </select>
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">E-mail</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="email"  class="form-control" placeholder="★E-mail" name="email">
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                     <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">建立日期</label>
                                                <div class="input-group-content">
				                                    <div class="input-group">
				                                        <input type="text" class="form-control" readonly=""  id="start-time" name="create_date" 
				                                        value="${consumerVO.dateToString(consumerVO.create_date)}" >
				                                    </div>
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">                                 
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">备注</label>
                                                <div class="input-group-content">
                                                	<input type="text" id="remark" class="form-control" placeholder="备注" name="remark" >
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--<h4 class="form-section">开户信息</h4>-->
                                <div class="portlet-title" style="border-bottom: 1px solid #eef1f5;padding: 0;min-height: 48px;margin-bottom: 29px;">
                                    <div class="caption" style="color: #666;padding: 10px 0;float: left;display: inline-block;font-size: 18px;line-height: 18px;">开户信息</div>
                                </div>
                                  <input type="hidden" id="consumer_id" name="consumer_id"  value="">
                                  <div class="row">
                                      <div class="col-md-6">
                                          <div class="form-group">
                                              <div class="input-group">
                                                  <label class="input-group-addon">开户名称</label>
                                                  <div class="input-group-content">
                                                      <input type="text" id="bank_consumer_name"
                                                             class="form-control" name="bank_consumer_name" placeholder="开户名称与姓名一致 "  readonly="readonly">
                                                  </div>
                                              </div>
                                          </div>
                                      </div>
                                       <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">开户账号</label>
                                                    <div class="input-group-content">
                                                    	<input type="text" id="account_no" class="form-control" name="card_num" placeholder="★开户账号" >
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                </div>
                                <div class="row">
                                	<div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">开户渠道</label>
                                                <div class="input-group-content">
                                                	<select class="form-control input-inline" id="channel_type" name="channel_type" >
					                                    <option value="">★请选择</option>
					                                    	<#list type_list as type>
					                                    		<option value="${type.config_value}">${type.config_desc}</option>
										                    </#list>				                                    
					                                </select> 
                                            	</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">开户行名称</label>
                                                <input type="hidden" id="cls_bank_name" name="cls_bank_name" class="form-control"
                                                       data-code=''>
                                                <div class="input-group-content">
                                                    <select name="cls_bank_code"  id="cls_bank_code" class="form-control">
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                     <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">开户支行省市</label>
                                                <input type="hidden" class="form-control" id="province_name" value=""
                                                data-code='' >
                                           		<input type="hidden" id="city_name" class="form-control"  value="" 
                                           		data-code=''>
                                           		<div class="input-group-content">
	                                                <div class="col-md-6 plr0">
	                                                    <select name="province_code"  id="province_code" class="form-control input-inline">
	                                                    </select>
	                                                </div>
	                                                <div class="col-md-6 plr0">
	                                                    <select name="city_id"  id="city_code" class="form-control input-inline">
	                                                       
	                                                    </select>
	                                                </div>
	                                            </div> 
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">开户支行名称</label>
                                                <input type="hidden" id="brank_bank_name" class="form-control"  name="brank_bank_name"
                                                       value="" data-code=''>
                                                <div class="input-group-content">
                                                    <select  id="brank_bank_code" name="bank_id" class="form-control">

                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="input-group">
                                                    <label class="input-group-addon">账户性质</label>
                                                    <div class="input-group-content">
                                                        <select  id="account-type" readonly="readonly" class="form-control" name="consumer_type" placeholder="账户性质">
	                                                        <option value="PERSON" selected>个人户</option>
                                                        </select>
                                                	</div>
                                                </div>
                                            </div>
                                        </div>
                                </div>
                                <!--<h4 class="form-section">子账户信息</h4>-->
                                <div class="portlet-title" style="border-bottom: 1px solid #eef1f5;padding: 0;min-height: 48px;margin-bottom: 29px;">
                                    <div class="caption" style="color: #666;padding: 10px 0;float: left;display: inline-block;font-size: 18px;line-height: 18px;">子账户信息</div>
                                </div>
                                <div class="row">
                                	<div class="col-md-6">
                                         <div class="form-group">
                                           		<div class="input-group">
                                                  	<label class="input-group-addon">子账户</label>
                                                  	<div class="input-group-content">
                                                    	<input type="text" id="" class="form-control" name="bank_account_no" placeholder="开通子账户后显示账号信息"  disabled>
                                                	</div>
                                                </div>
                                          </div>
                                    </div>
                                   
                                </div>
                           	</div>
                            <div class="form-actions top">
                                <div class="row">
                                    <div class="col-md-offset-5 col-md-7">
                                       
                                         <button type="submit" class="btn green" id="indSave">保存</button>
                                        <a href="${context}/perConsumer/individualConsumer" class="btn default">返回</a>
                                    </div>
                                </div>
                            </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->

</@page.mainTemplate>